<%= form_for @installation,
     :url => create_installation_order_url,
     :remote => true,
     :method => :post do |f|
 %>
<h6><b>新增-派工安装</b></h6>
<%= f.hidden_field :order_item_id%>
<dl>
  <dt>
    安装工
  </dt>
  <dd>
    <%= f.text_field :installer_full_name %>
  </dd>
</dl>
<dl>
  <dt>
    派工件数
  </dt>
  <dd>
    <%= f.text_field :has_been_sent_to_installer_count %>
  </dd>
</dl>
<dl>
  <dt>
    派工日期
  </dt>
  <dd>
    <%= f.text_field :installed_on, :class => :date %>
    <script>
      $('#installation_installed_on').datepicker({
        showButtonPanel: true
      });
    </script>
  </dd>
</dl>
<dl>
  <dt>
    备注
  </dt>
  <dd>
    <%= f.text_area :remark, :rows => 5%>
  </dd>
</dl>
<dl>
  <dd class="form_tool">
    <%= f.submit '保存' %>
    <%= link_to '返回', new_feed_order_url(@installation.order_item),:remote => true, :method => :get, :id => "new_installation_btn#{@installation.order_item.id}", :class => 'button' %>
  </dd>
</dl>
<div class="clear"></div>
<%end%>
